package com.hlkj.baojin.service;

import com.hlkj.baojin.constant.enums.SmsTypeEnum;
import com.hlkj.baojin.entity.AlarmRecord;
import com.hlkj.baojin.entity.EarlyAlarmRecord;
import org.springframework.scheduling.annotation.Async;

import java.io.IOException;

public interface SmsService {
    /** 根据类型发送手机短信
     * @param phoneNumber 发送手机号
     * @param smsTypeEnum 枚举
     * @param param 枚举对应的参数
     */
    void sendSms(String phoneNumber, SmsTypeEnum smsTypeEnum, String... param);

    void sendAlarmSms(AlarmRecord alarmRecord, boolean sendSocket);

    void sendEarlyAlarmSms(EarlyAlarmRecord alarmRecord, boolean sendSocket);
}
